package netty.rpc.framework.rpcserver.config;

import netty.rpc.framework.core.netty.transport.server.NettyServer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServerConfig {
    @Value("${rpc.server.port}")
    private Integer port;

    @Bean
    public NettyServer nettyServer(){
        return new NettyServer(port);
    }
}
